package com.guigu.wupinghuiservice.controller;


import com.guigu.wupinghuiservice.entity.Student;
import com.guigu.wupinghuiservice.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author ABC
 * @since 2022-02-15
 */
@RestController
@RequestMapping("/wupinghuiservice/student")
public class StudentController {

    @Resource
    private StudentService studentService;

    @GetMapping
    public List<Student> queryAll() {
        return studentService.list(null);
    }
}

